package eu.gline.km.jni.keyboard;

import eu.gline.km.jni.enums.UINT;
import eu.gline.km.jni.enums.bVk;
import eu.gline.km.jni.enums.dwFlags;


public class Keyboard_simulator {

	private Keyboard_proxy kp;
	
	private Keyboard_proxy getProxy() {
		if (kp==null) kp = new Keyboard_proxy();
		return kp;
	}
	
	public void Keybd_event(bVk bvk, dwFlags dwflags) {
		this.Keybd_event(bvk.value(), dwflags.value());
	}
	
	public void Keybd_event(int bvk, int dwflags) {
		getProxy().Keybd_event(bvk, dwflags);
	}
	
	public void SetForegroundWindow(String window) {
		getProxy().SetForegroundWindow(window);
	}
	
	public void PostMessage(String window, UINT uint, bVk bvk, int i) {
		getProxy().PostMessage(window, uint.value(), bvk.value(), i);
	}
	
	public void SendMessage(String window, UINT uint, bVk bvk, int i) {
		getProxy().PostMessage(window, uint.value(), bvk.value(), i);
	}
	
}
